<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>控制媒体回放</title>
</head>
<body>
<div>
    <button id="playback-controller">Play</button>
</div>
<video id="ddd-video">
    <source src="">
    <source src="">
</video>
<script>
    function playbackClick(e) {
        var target = e.target;
        var video = document.getElementById('bbb-video');
        if (target.innerHTML == 'Play') {
            video.play();
            target.innerHTML = 'Pause';
        } else {
            video.pause();
            target.innerHTML = 'Play';
        }
    }

    document.getElementById('playback-controller').addEventListener('click', playbackClick);
</script>
</body>
</html>